<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
</head>

<body>
    <h1>1111</h1>
</body>
<script type="text/javascript">
    (function () {
        setInterval(() => {
            let now = new Date()
            console.log(now.toLocaleTimeString())
        }, 1000)
          
    })()
</script>

</html>